import {
    call,
    select,
    takeEvery,
    takeLatest,
    throttle,
} from "redux-saga/effects";
import { INCREMENT } from "../actions/varuable";
import { getHots } from "../../api";

export default function* Saga() {
    yield throttle(1000, INCREMENT, function* (action) {
        const state = yield select((state) => state);
        const res = yield call(getHots, "baidu");
        console.log("res", res);
        console.log("action", state);
    });
}
